package com.itheima.dao;

import com.itheima.domain.Teacher;

import java.util.ArrayList;

public interface ITeacherDao {
    //增
    void addTeacher(Teacher teacher);
    //删
    void deleteTeacher(String sid);
    //改
    void updateTeacher(String sid,Teacher newTea);
    //查
    ArrayList<Teacher> findAllTeachers();
    //根据工号查索引
    int getIndex(String sid);
}
